<?php
defined('_JEXEC') or die('Restricted access');

function modChrome_gavickpro($module, &$params, &$attribs)
{
	$headerLevel = isset($attribs['headerLevel']) ? (int) $attribs['headerLevel'] : 3;
	if (!empty ($module->content)) : ?>
		<div class="moduletable<?php echo $params->get('moduleclass_sfx'); ?>">
			<?php if ($module->showtitle) : ?>
			
				<?php
					$title = explode(' ', $module->title);
					$title_part1 = array_shift($title);
					$title_part2 = join(' ', $title);
				?>
			
				<h<?php echo $headerLevel; ?>><span><strong><?php echo $title_part1.' '; ?></strong><?php echo $title_part2; ?></span></h<?php echo $headerLevel; ?>>
			<?php endif; ?>
                              <div class="moduletable_content">
			<?php echo $module->content; ?>
                              </div>
		</div>
	<?php endif;
}
?>